package org.demon.springtest.design.decorator;

/**
 * @author demon
 * @version 1.0.0
 */
public class PacketHtmlCreator extends PacketCreatorDecorator {


    public PacketHtmlCreator(PacketCreator packetCreator) {
        super(packetCreator);
    }

    @Override
    public String body() {
        String pre = "<HTML><body>";
        String append = packetCreator.body();
        String bottom = "</body></HTML>";
        return pre + append + bottom;
    }
}
